﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Web.Services;

public partial class Admin_Faq : System.Web.UI.Page
{
    FaqController faqController = new FaqController();

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {

            grvFaq.DataSource = faqController.GetAll();
            grvFaq.DataBind();
            if (grvFaq.Rows.Count > 0)
            {
                grvFaq.UseAccessibleHeader = true;
                grvFaq.HeaderRow.TableSection = TableRowSection.TableHeader;
            }
        }
    }
}